\hypertarget{class_collectible}{
\section{Collectible Class Reference}
\label{class_collectible}\index{Collectible@{Collectible}}
}


Base class for collectible game object.  


Inheritance diagram for Collectible:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=4.699301cm]{class_collectible}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
enum \{ \hyperlink{class_collectible_a8d0b62b303f42acbc3b3f4de5cd80e8ca0b6efcb4b966c870d6466d551bc3bc9a}{LifeCycleMineralA} =  2500
 \}
\item 
enum \{ \hyperlink{class_collectible_ade9bea40ecbdfb139747d8f2be13fa05a31e6acb01a2b46896779d35b3e118c5b}{LifeCycleMineralB} =  1500
 \}
\item 
enum \{ \hyperlink{class_collectible_a1290be7a8af0bc4f859bc9b0382a10d0a76fe8564b29ffa56cc4982c77262efdb}{LifeCycleMineralC} =  1000
 \}
\item 
enum \{ \hyperlink{class_collectible_a21a19b98645ff5bcf3b1293e0f42c473a72180dfa6ce5cc63a7e58342923b46d8}{LifeCycleMineralD} =  600
 \}
\item 
enum \{ \hyperlink{class_collectible_a5543dfe9e88598e0ce37a0a18052e61da82bbfa211ced402786807c84332e7246}{LifeCycleBomb} =  900
 \}
\item 
enum \{ \hyperlink{class_collectible_a741ba9fe0f731b926b47510c0cfee1acab8fb755ee736c52737dd1dea78ebf0a8}{LifeCycleHyperJump} =  9000
 \}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_collectible_ad5308b1c84da3004276480bfc94f2277}{Collectible} (\hyperlink{gameobject_8h_a57678b60d65afb213d04a6b090c64a08}{GameObjectType} \hyperlink{class_game_object_a6f5c85c8b3a4cb373efb1faa229fc9f3}{type}, int frame, FPtype gameObjectRadius, \hyperlink{gameobject_8h_a390930e5106df06a541e66ea33eb85c9}{SpeedLimit} gameObjectSpeedLimit, bool rewindEnabled, \hyperlink{gameobject_8h_a04d872bb0ec7701fa714b72007a6f562}{GameObjectMass} mass, \hyperlink{gameobject_8h_a08995c712f6c983b592da8f4fc89ff59}{ScoreValue} value, int lifeCycleFrames)
\begin{DoxyCompactList}\small\item\em Constructor for collectible. \item\end{DoxyCompactList}\item 
\hypertarget{class_collectible_af4babcb471a03ab086905a0a8b35c145}{
bool \hyperlink{class_collectible_af4babcb471a03ab086905a0a8b35c145}{lifeCycleLeft} (int frames) const }
\label{class_collectible_af4babcb471a03ab086905a0a8b35c145}

\begin{DoxyCompactList}\small\item\em How many frames will collectible have its lifecycle left. \item\end{DoxyCompactList}\item 
\hypertarget{class_collectible_a039375d31e18a89ab69bce43cee3f454}{
void \hyperlink{class_collectible_a039375d31e18a89ab69bce43cee3f454}{setLifeCycle} (int frames)}
\label{class_collectible_a039375d31e18a89ab69bce43cee3f454}

\begin{DoxyCompactList}\small\item\em Sets lifecycle of the collectible as {\itshape frames\/}. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_collectible_af5618abe58f15943d4ed37a0abafcd04}{
int \hyperlink{class_collectible_af5618abe58f15943d4ed37a0abafcd04}{lifeCycleInFrames}}
\label{class_collectible_af5618abe58f15943d4ed37a0abafcd04}

\begin{DoxyCompactList}\small\item\em Lifecycle of collectible as frames. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Base class for collectible game object. \hyperlink{class_collectible}{Collectible} wraps. 

\subsection{Member Enumeration Documentation}
\hypertarget{class_collectible_a8d0b62b303f42acbc3b3f4de5cd80e8c}{
\subsubsection[{"@0}]{\setlength{\rightskip}{0pt plus 5cm}anonymous enum}}
\label{class_collectible_a8d0b62b303f42acbc3b3f4de5cd80e8c}
\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{LifeCycleMineralA@{LifeCycleMineralA}!Collectible@{Collectible}}\index{Collectible@{Collectible}!LifeCycleMineralA@{LifeCycleMineralA}}\item[{\em 
\hypertarget{class_collectible_a8d0b62b303f42acbc3b3f4de5cd80e8ca0b6efcb4b966c870d6466d551bc3bc9a}{
LifeCycleMineralA}
\label{class_collectible_a8d0b62b303f42acbc3b3f4de5cd80e8ca0b6efcb4b966c870d6466d551bc3bc9a}
}]\hyperlink{class_mineral_a}{MineralA} lifecycle. \end{description}
\end{Desc}

\hypertarget{class_collectible_ade9bea40ecbdfb139747d8f2be13fa05}{
\subsubsection[{"@1}]{\setlength{\rightskip}{0pt plus 5cm}anonymous enum}}
\label{class_collectible_ade9bea40ecbdfb139747d8f2be13fa05}
\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{LifeCycleMineralB@{LifeCycleMineralB}!Collectible@{Collectible}}\index{Collectible@{Collectible}!LifeCycleMineralB@{LifeCycleMineralB}}\item[{\em 
\hypertarget{class_collectible_ade9bea40ecbdfb139747d8f2be13fa05a31e6acb01a2b46896779d35b3e118c5b}{
LifeCycleMineralB}
\label{class_collectible_ade9bea40ecbdfb139747d8f2be13fa05a31e6acb01a2b46896779d35b3e118c5b}
}]\hyperlink{class_mineral_b}{MineralB} lifecycle. \end{description}
\end{Desc}

\hypertarget{class_collectible_a1290be7a8af0bc4f859bc9b0382a10d0}{
\subsubsection[{"@2}]{\setlength{\rightskip}{0pt plus 5cm}anonymous enum}}
\label{class_collectible_a1290be7a8af0bc4f859bc9b0382a10d0}
\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{LifeCycleMineralC@{LifeCycleMineralC}!Collectible@{Collectible}}\index{Collectible@{Collectible}!LifeCycleMineralC@{LifeCycleMineralC}}\item[{\em 
\hypertarget{class_collectible_a1290be7a8af0bc4f859bc9b0382a10d0a76fe8564b29ffa56cc4982c77262efdb}{
LifeCycleMineralC}
\label{class_collectible_a1290be7a8af0bc4f859bc9b0382a10d0a76fe8564b29ffa56cc4982c77262efdb}
}]\hyperlink{class_mineral_c}{MineralC} lifecycle. \end{description}
\end{Desc}

\hypertarget{class_collectible_a21a19b98645ff5bcf3b1293e0f42c473}{
\subsubsection[{"@3}]{\setlength{\rightskip}{0pt plus 5cm}anonymous enum}}
\label{class_collectible_a21a19b98645ff5bcf3b1293e0f42c473}
\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{LifeCycleMineralD@{LifeCycleMineralD}!Collectible@{Collectible}}\index{Collectible@{Collectible}!LifeCycleMineralD@{LifeCycleMineralD}}\item[{\em 
\hypertarget{class_collectible_a21a19b98645ff5bcf3b1293e0f42c473a72180dfa6ce5cc63a7e58342923b46d8}{
LifeCycleMineralD}
\label{class_collectible_a21a19b98645ff5bcf3b1293e0f42c473a72180dfa6ce5cc63a7e58342923b46d8}
}]\hyperlink{class_mineral_d}{MineralD} lifecycle. \end{description}
\end{Desc}

\hypertarget{class_collectible_a5543dfe9e88598e0ce37a0a18052e61d}{
\subsubsection[{"@4}]{\setlength{\rightskip}{0pt plus 5cm}anonymous enum}}
\label{class_collectible_a5543dfe9e88598e0ce37a0a18052e61d}
\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{LifeCycleBomb@{LifeCycleBomb}!Collectible@{Collectible}}\index{Collectible@{Collectible}!LifeCycleBomb@{LifeCycleBomb}}\item[{\em 
\hypertarget{class_collectible_a5543dfe9e88598e0ce37a0a18052e61da82bbfa211ced402786807c84332e7246}{
LifeCycleBomb}
\label{class_collectible_a5543dfe9e88598e0ce37a0a18052e61da82bbfa211ced402786807c84332e7246}
}]\hyperlink{class_bomb}{Bomb} lifecycle. \end{description}
\end{Desc}

\hypertarget{class_collectible_a741ba9fe0f731b926b47510c0cfee1ac}{
\subsubsection[{"@5}]{\setlength{\rightskip}{0pt plus 5cm}anonymous enum}}
\label{class_collectible_a741ba9fe0f731b926b47510c0cfee1ac}
\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{LifeCycleHyperJump@{LifeCycleHyperJump}!Collectible@{Collectible}}\index{Collectible@{Collectible}!LifeCycleHyperJump@{LifeCycleHyperJump}}\item[{\em 
\hypertarget{class_collectible_a741ba9fe0f731b926b47510c0cfee1acab8fb755ee736c52737dd1dea78ebf0a8}{
LifeCycleHyperJump}
\label{class_collectible_a741ba9fe0f731b926b47510c0cfee1acab8fb755ee736c52737dd1dea78ebf0a8}
}]\hyperlink{class_hyper_jump}{HyperJump} lifecycle. \end{description}
\end{Desc}



\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_collectible_ad5308b1c84da3004276480bfc94f2277}{
\index{Collectible@{Collectible}!Collectible@{Collectible}}
\index{Collectible@{Collectible}!Collectible@{Collectible}}
\subsubsection[{Collectible}]{\setlength{\rightskip}{0pt plus 5cm}Collectible::Collectible (
\begin{DoxyParamCaption}
\item[{{\bf GameObjectType}}]{ type, }
\item[{int}]{ frame, }
\item[{FPtype}]{ gameObjectRadius, }
\item[{{\bf SpeedLimit}}]{ gameObjectSpeedLimit, }
\item[{bool}]{ rewindEnabled, }
\item[{{\bf GameObjectMass}}]{ mass, }
\item[{{\bf ScoreValue}}]{ scoreValue, }
\item[{int}]{ lifeCycleFrames}
\end{DoxyParamCaption}
)}}
\label{class_collectible_ad5308b1c84da3004276480bfc94f2277}


Constructor for collectible. 

{\itshape type\/} Type of the game object as \hyperlink{gameobject_8h_a57678b60d65afb213d04a6b090c64a08}{GameObjectType}

{\itshape frame\/} Current frame number. When the \hyperlink{class_game_object}{GameObject} was created.

{\itshape gameObjectRadius\/} Radius of the game object as FPtype.

{\itshape gameObjectSpeedLimit\/} Maximum speed of the game object as \hyperlink{gameobject_8h_a390930e5106df06a541e66ea33eb85c9}{SpeedLimit}.

{\itshape rewindEnabled\/} Is the rewind mode enabled.

{\itshape mass\/} Mass of the game object as \hyperlink{gameobject_8h_a04d872bb0ec7701fa714b72007a6f562}{GameObjectMass}.

{\itshape scoreValue\/} Score value of the game object as \hyperlink{gameobject_8h_a08995c712f6c983b592da8f4fc89ff59}{ScoreValue}.

{\itshape lifeCycleFrames\/} Life cycle of the collectible as frames. 

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
collectible.h\item 
collectible.cpp\end{DoxyCompactItemize}
